package com.yz.platform.modules.biz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.yz.platform.modules.biz.dao.CodeLogDao;
import com.yz.platform.modules.biz.entity.CodeLogEntity;
import com.yz.platform.modules.biz.service.CodeLogService;



@Service("codeLogService")
public class CodeLogServiceImpl implements CodeLogService {


	@Autowired
	private CodeLogDao codeLogDao;
	
	@Override
	public CodeLogEntity queryObject(Integer id){
		return codeLogDao.queryObject(id);
	}

	@Override
	public CodeLogEntity queryBycode(String code){
		return codeLogDao.getBycode(code);
	}


	
	@Override
	public List<CodeLogEntity> queryList(Map<String, Object> map){
		return codeLogDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return codeLogDao.queryTotal(map);
	}
	
	@Override
	public void save(CodeLogEntity codeLog){
		codeLogDao.save(codeLog);
	}
	
	@Override
	public void update(CodeLogEntity codeLog){
		codeLogDao.update(codeLog);
	}
	
	@Override
	public void delete(Integer id){
		codeLogDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		codeLogDao.deleteBatch(ids);
	}
	
}
